/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tutorial.BuilderSiDAO;

import tutorial.BuilderSiDAO.BuilderPattern.StdExporter;
import tutorial.BuilderSiDAO.BuilderPattern.StdImporter;
import tutorial.BuilderSiDAO.DAOPattern.StdPersoanaDAO;
import tutorial.BuilderSiDAO.commons.ptBuilderPersoana;
import tutorial.BuilderSiDAO.commons.ptBuilderPersoana.Exporter;
import tutorial.BuilderSiDAO.commons.ptBuilderPersoana.Importer;
import tutorial.BuilderSiDAO.commons.ptDAOPersoana;
import tutorial.BuilderSiDAO.commons.ptDAOPersoana.PersoanaDAO;

/**
 *  Aici este un exemplu al implementarilor StdImporter si StdExporter,
 * precum si StdPersoanaDAO
 * @author Boogie
 */
public class Tutorial {

    public static void main(String[] args) {
        System.out.println("\n\nBuilder:\n");
        Importer importer = new StdImporter();
        ptBuilderPersoana p = new ptBuilderPersoana(importer);
        Exporter exporter = new StdExporter();
        p.export(exporter);
        
        
        System.out.println("\n\nDAO:\n");
        
        ptDAOPersoana p2;
        
        PersoanaDAO pDao = new StdPersoanaDAO();
        p2 = pDao.importPersoasa();
        pDao.exportPersoana(p2);
        
        
    }
}
